package com.ruoyi.miniapp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 mini_coupon
 * 
 * @author duantao
 * @date 2025-09-10
 */
public class MiniCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券 */
    private Long couponId;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String couponName;

    /** 优惠券使用描述 */
    @Excel(name = "优惠券使用描述")
    private String couponRemark;

    /** 优惠券图标 */
    @Excel(name = "优惠券图标")
    private String couponImg;

    /** 优惠券类型（0-无门槛，1-满减，2-折扣） */
    @Excel(name = "优惠券类型", readConverterExp = "0=-无门槛，1-满减，2-折扣")
    private String couponType;

    /** 优惠券金额 */
    @Excel(name = "优惠券金额")
    private BigDecimal couponAmount;

    /** 有效期起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date couponValidityStart;

    /** 有效期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date couponValidityEnd;

    /** 优惠券状态（0-失效，1-有效） */
    @Excel(name = "优惠券状态", readConverterExp = "0=-失效，1-有效")
    private String couponValidStatus;

    /** 活动状态（0正常 1停用） */
    @Excel(name = "活动状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }

    public void setCouponRemark(String couponRemark) 
    {
        this.couponRemark = couponRemark;
    }

    public String getCouponRemark() 
    {
        return couponRemark;
    }

    public void setCouponImg(String couponImg) 
    {
        this.couponImg = couponImg;
    }

    public String getCouponImg() 
    {
        return couponImg;
    }

    public void setCouponType(String couponType) 
    {
        this.couponType = couponType;
    }

    public String getCouponType() 
    {
        return couponType;
    }

    public void setCouponAmount(BigDecimal couponAmount) 
    {
        this.couponAmount = couponAmount;
    }

    public BigDecimal getCouponAmount() 
    {
        return couponAmount;
    }

    public void setCouponValidityStart(Date couponValidityStart) 
    {
        this.couponValidityStart = couponValidityStart;
    }

    public Date getCouponValidityStart() 
    {
        return couponValidityStart;
    }

    public void setCouponValidityEnd(Date couponValidityEnd) 
    {
        this.couponValidityEnd = couponValidityEnd;
    }

    public Date getCouponValidityEnd() 
    {
        return couponValidityEnd;
    }

    public void setCouponValidStatus(String couponValidStatus) 
    {
        this.couponValidStatus = couponValidStatus;
    }

    public String getCouponValidStatus() 
    {
        return couponValidStatus;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("couponName", getCouponName())
            .append("couponRemark", getCouponRemark())
            .append("couponImg", getCouponImg())
            .append("couponType", getCouponType())
            .append("couponAmount", getCouponAmount())
            .append("couponValidityStart", getCouponValidityStart())
            .append("couponValidityEnd", getCouponValidityEnd())
            .append("couponValidStatus", getCouponValidStatus())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
